﻿<%@ page language="C#" autoeventwireup="true" inherits="Admin_BillEdit, App_Web_billedit.aspx.fdf7a39c" enableeventvalidation="false " %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server" displaymode="List">
    <title>UPEX&nbsp;-&nbsp;网上制单</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/main-admin.css" rel="stylesheet" type="text/css" />

    <script src="../Jscript/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../Jscript/jquery-ui-1.7.2.min.js" type="text/javascript"></script>

    <script src="../Jscript/page.js" type="text/javascript"></script>

    <script src="../Jscript/jquery.ysbcheck.js" type="text/javascript"></script>

    <script src="../Jscript/jquery.myvalidate.js" type="text/javascript"></script>

    <link href="../css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .bordercss
        {
            border: 1px solid #CCC;
        }
        .jifeitypecss
        {
            width: 80px;
            border: 1px solid #CCC;
            height: 20px;
            margin-right: 10px;
        }
    </style>

    <script type="text/javascript">

               var mg = <%=Mg %>;
           var notmg = <%=NotMg %>;
          var liuyan = ",";
            var ismg = <%=IsMg %>;
          var daigoufeilv=<%=DaigouFl %>;
        var baozhuangfeilv=<%=BaozhuangFL %>;
        var dmg= <%=dIsMg %>;
        var ddg=<%=dDaigouFl %>;
        var dbz=<%=dBaozhuangFL %>;
        var did=<%=dfcreateuser %>;
        var dacc='<%=accnb%>';

        $(document).ready(function() {
            $("#Okbtn").Ck();
            $("#UserGet").dialog({
                width: 800,
                height: 450,
                bgiframe: true,
                modal: true,
                autoOpen: false,
                position: ["200", "300"]
            })
                                 $("#NameSelect").dialog({
                width: 800,
                height: 450,
                bgiframe: true,
                modal: true,
                autoOpen: false,
                position: ["200", "100"]
            })
            
            $("#accno_txt").attr("readonly", true); //开始就只读
            $("#gs_txt").attr("readonly", true); //开始就只读
            $("#createaccnord_0").click(function() {//自动生成选重
                $("#accno_txt").val("");
                $("#ShowNoErr").html("");
                $("#accno_txt").attr("readonly", true);
            });
            $("#createaccnord_1").click(function() {//手动
                $("#accno_txt").attr("readonly", false);
            });
            $("#accno_txt").change(function() {
                //手动单号  查询是否正确
                var no = $("#accno_txt").val();
                if (no.length != 9) {
                    $("#ShowNoErr").html("手工单据号为9位...");
                    return;
                }
                
                
                
                $("#ShowNoErr").html("检查重复中....");
                $.get("VaildNo.ashx", { No: no }, function(data) {
                    if (data == 'ok') {

                        $("#ShowNoErr").css("color", "blue");
                        $("#ShowNoErr").html("单号无重复，允许使用....");
                    }
                    else {

                        $("#ShowNoErr").css("color", "red");
                        $("#ShowNoErr").html("当前单号存在，请更换");
                    }
                });
            });
            $("#gs_txt").click(function() {//  查找客户
                if ($("#accnogs_1").attr("checked") == true) {
                    $("#UserGet").dialog('open');
                    //如果选择的是不是公司账户。。弹出
                }

            });

            $("#accnogs_0").click(function() {
                //选择的   
                ismg = dmg;
                daigoufeilv = ddg;
                baozhuangfeilv = dbz;
                $("#creaduser").val(did);
                $("#gs_txt").val("");
                $("#anccnum").val(dacc);
                ToGetCalTye();
            });



            $("#zhongliang_txt").change(function() {
                //重量比较
                ToShowSF();
            });
            $("#changtxt").change(function() {
                //长
                ToShowSF();
            });
            $("#kuantxt").change(function() {
                //宽
                ToShowSF();
            });
            $("#gaotxt").change(function() {
                //高
                ToShowSF();
            });
            //海关总价
            $("#price1").change(function() {
                //1价格
                ToShowHg();
            });
            $("#price2").change(function() {
                //2价格
                ToShowHg();
            });
            $("#dianfufeilb").change(function() {
                //垫付费变化
                //代购费=垫付费用*5%

                var daigou = changeTwoDecimal_f($(this).val() * daigoufeilv * parseFloat2(0.01));
                $("#daigoufeihd").val(daigou);
                $("#daigoufeilb").html(daigou);


                ToShowAll();
            });

            $("#guanshuitxt").change(function() {
                //关税
                ToShowAll();

            });

            $("#baoxianfeitxt").change(function() {
                //保险费
                ToShowAll();

            });

            $("#othertxt").change(function() {
                //其他费用

                ToShowAll();
            });

            $("#youhuitxt").change(function() {
                //优惠
                ToShowAll();

            });


            $("#addliuyan").click(function() {//留言


                var value = $("#liuyandiv").html();
                liuyan = liuyan + $("#liuyanneirong").val() + ","
                $("#liuyanhd").val(liuyan);
                value += "  <div style=\"margin-top: 5px; float: left; width: 966px;\">";


                value += " <font color=\"#0099FF\">公司：</font> " + $("#liuyanneirong").val() + "</div>";

                $("#liuyandiv").html(value);
            });
            $("#jifeitype").change(function() {

                toWeightPay();


            });



        });


        function ToSetBaozhuang() {


            var fy = parseFloat2($("#ChargedWt").html()) * parseFloat2(baozhuangfeilv);


            $("#baozhuangfeihd").val(changeTwoDecimal_f(fy));
            $("#baozhuangfeilb").html(changeTwoDecimal_f(fy));
        }

        //海关总价
        function ToShowHg() {


            var h1 = 0;
            var h2 = 0
            if ($("#name1").val() != "") {
                h1 = $("#price1").val();
            }
            if ($("#name2").val() != "") {
                h2 = $("#price2").val();
            }
            var hg = changeTwoDecimal_f(parseFloat2(h1) + parseFloat2(h2));
            $("#haiguanhd").val(hg);
            $("#haiguanall").html(hg);

        }
        //收费重量
        function ToShowSF() {

            var zhongliang = $("#zhongliang_txt").val();
            var fy = parseFloat2($("#changtxt").val()) * parseFloat2($("#kuantxt").val()) * parseFloat2($("#gaotxt").val())


            var tijizhongliang = 0;

            if (isNaN(fy)) {

            }
            else {

                if (ismg == true) {
                    tijizhongliang = fy / mg;
                }
                else {
                    tijizhongliang = fy / notmg;
                }

            }
            $("#tijizhonglianghd").val(tijizhongliang);

            if (zhongliang > tijizhongliang) {
                $("#shoufeizhonglianghd").val(changeTwoDecimal_f(zhongliang));
                $("#ChargedWt").html(changeTwoDecimal_f(zhongliang));
            }
            else {
                $("#shoufeizhonglianghd").val(changeTwoDecimal_f(tijizhongliang));
                $("#ChargedWt").html(changeTwoDecimal_f(tijizhongliang));
            }





            toWeightPay();


            ToSetBaozhuang(); //包装费率影响
            ToShowAll(); //影响到所有费用

        }
        function toWeightPay() {//收费重量


            var weight = $("#ChargedWt").html();


            if (weight > 0) {
                var value = $("#jifeitype option:selected").val();

                if (value == "") {
                    OpenWindow('计费类别异常');
                    return;
                }
                var sb = "";
                var f = value.indexOf(",");
                var e = value.lastIndexOf(",")


                var sb = value.substring(f + 1, e);
                var cb = value.substring(e + 1);


                var cbw = (weight - 1) * cb;

                $("#FreightChargelb").html(changeTwoDecimal_f(parseFloat2(sb) + cbw));
                $("#zlshoufeihd").val($("#FreightChargelb").html());

                ToShowAll();

            }
        }


        //设置所有费用
        function ToShowAll() {


            var zongfei = parseFloat2($("#FreightChargelb").html()) + parseFloat2($("#dianfufeilb").val()) + parseFloat2($("#daigoufeilb").html()) + parseFloat2($("#baozhuangfeilb").html()) + parseFloat2($("#guanshuitxt").val()) + parseFloat2($("#baoxianfeitxt").val()) + parseFloat2($("#othertxt").val()) - parseFloat2($("#youhuitxt").val());

            var all = 0;
            if (zongfei > 0) {
                all = zongfei;
            }
            $("#Totalhb").val(changeTwoDecimal_f(all));
            $("#Totallb").html(changeTwoDecimal_f(all));
        }


        var state = ',';
        var stateid = ',';
        var date = ',';
        var gongsi = ',';
        var zhuanyundanha = ',';
        var beizhu=',';
        function addState() {



            state = state + $("#statelistdrr option:selected").text() + ",";
            stateid = stateid + $("#statelistdrr option:selected").val() + ",";
            date = date + $("#statedate").val() + ",";


            gongsi = gongsi + $("#cplistdrr").val() + ",";
            zhuanyundanha = zhuanyundanha + $("#zhuanyuntxt").val() + ",";
            beizhu=beizhu+$("#beizhuttxt").val()+","

            //   alert(state + "-" + stateid + "--" + date + "--" + gongsi + "--" + zhuanyundanha)



            $("#statenamehd").val(state);
            $("#stateidhd").val(stateid);
            $("#datehd").val(date);
            $("#gongsihd").val(gongsi);
            $("#danhaohd").val(zhuanyundanha);
            $("#beizhuhd").val(beizhu);
            var value = $("#statehtml").html();



            value += "    <div class=\"trans-search-line floatleft\" style=\"width: 966px;\">";
            value += "      <div class=\"trans-search-no\"  style=\"width: 150px; \">";
            value += "          " + $("#statedate").val() + "</div>";
            value += "      <div style=\"width: 250px; float: left;\">";
            value += "          " + $("#statelistdrr  option:selected").text() + "</div>";
            value += "      <div class=\"trans-search-sender\">";
            value += "         &nbsp;  " + $("#cplistdrr  option:selected").text() + "</div>";
            value += "     <div class=\"trans-search-date\"  style=\"width: 130px;\">";
            value += "       &nbsp; " + $("#zhuanyuntxt").val() + "</div>";
   
            
                        value += "  <div class=\"trans-search-date\" style=\"width: 300px;\" >";
            value += "       &nbsp; " + $("#beizhuttxt").val() + "</div>";
            
            
            value += "    </div>";
            $("#statehtml").html(value);

        }


        function parseFloat2(value) {
            var f_x = parseFloat(value);
            if (isNaN(f_x)) {
                return 0;
            }
            else {
                return f_x;
            }
        }

        function changeTwoDecimal_f(x) {
            var f_x = parseFloat(x);
            if (isNaN(f_x)) {
                //   OpenWindow('您输入数字有误，请输入数字' + x);
                return false;
            }
            var f_x = Math.round(x * 100) / 100;
            var s_x = f_x.toString();
            var pos_decimal = s_x.indexOf('.');
            if (pos_decimal < 0) {
                pos_decimal = s_x.length;
                s_x += '.';
            }
            while (s_x.length <= pos_decimal + 2) {
                s_x += '0';
            }
            return s_x;
        }

        function ToSetSender(id, ann, name, tel, com, add, cp, bz, dg) {
            $("#UserGet").dialog('close');
            if (cp == '美国') {
                ismg = true;
            }
            else {
                ismg = false;
            }
            $("#creaduser").val(id);
            $("#gs_txt").val(ann);
            $("#creaduser").val(id);
            $("#sendertxt").val(name);
            $("#phonenotxt").val(tel);
            $("#addtxt").val(add);
            $("#companytxt").val(com);
            baozhuangfeilv = bz;
            daigoufeilv = dg;
            $("#anccnum").val(ann);
          ToGetCalTye();
        }
        $(document).ready(function() {
            $("#accno_txt").YsbValid({  type: "number" ,msg: "请输入9位字符", minlen: 9, maxlen: 10 });
            $("#sendertxt").YsbValid({ notnull: true });
            $("#renametxt").YsbValid({ notnull: true });
            $("#addtxt").YsbValid({ notnull: true });
            $("#readdtxt").YsbValid({ notnull: true });
            $("#zhongliang_txt").YsbValid({ notnull: true, type: "decimal" });
            $("#phonenotxt").YsbValid({ type: "number", maxlen: 20});
            $("#rephonenotxt").YsbValid({ type: "number", maxlen: 20  });
            $("#changtxt").YsbValid({  type: "decimal" });
            $("#kuantxt").YsbValid({  type: "decimal" });
            $("#gaotxt").YsbValid({ type: "decimal" });
            $("#dianfufeilb").YsbValid({ notnull: true, type: "decimal" });
            $("#guanshuitxt").YsbValid({ notnull: true, type: "decimal" });
            $("#baoxianfeitxt").YsbValid({ notnull: true, type: "decimal" });
            $("#youhuitxt").YsbValid({ notnull: true, type: "decimal" });
            $("#othertxt").YsbValid({ notnull: true, type: "decimal" });
            $("#num1").YsbValid({ type: "number" });
            $("#num2").YsbValid({ type: "number" });
            $("#price1").YsbValid({ type: "decimal" });
            $("#price2").YsbValid({ type: "decimal" });

            $("#uppricebtn").click(function() {
                AllPay();
            });
        });

        function ToGetCalTye() {

               var drp2=document.getElementById("jifeitype");
                drp2.options.length=0;
            $.post("GetCalTypeUser.ashx", { id: $("#creaduser").val() }, function(data) {
        
                //  $('#jifeitype').empty()
                var jda = strToJson(data);
                $.each(jda, function(i, n) {

                 $("<option value='" + n + "'>" + i + "</option>").appendTo("#jifeitype");
                  
                });
              $('#jifeitype')[0].selectedIndex = 0;


            });
            return;

        }
        function strToJson(str) {
            var json = eval('(' + str + ')');
            return json;
        }  

var ntype="";

function ShowNameSelect(type)
{
ntype=type;

$("input[type=checkbox]").each(function() {

                if ($(this).attr("checked") == true) {

if($(this).attr("name")=="toselectnameck")
                  {
      $(this).attr("checked",false );
                  }
                }
            });
            
     $("#NameSelect").dialog('open');
}


function ToNameSelect()
{ 
 
 var  select=""
$("input[type=checkbox]").each(function() {

                if ($(this).attr("checked") == true) {

if($(this).attr("name")=="toselectnameck")
                  {
             
                  select+=","+$(this).val();
                  }
                }
            });
            
            
 
 

 var nv= $("#name"+ntype).val();
$("#name"+ntype).val(nv+select);

     $("#NameSelect").dialog('close');
}

    </script>

    <script src="../Jscript/BillPayAll.js" type="text/javascript"></script>

</head>
<body>

    <script type="text/javascript" src="../DatePicker/WdatePicker.js"></script>

    <form id="for1m1" runat="server">
    <div class="title floatleft">
        网上制单</div>
    <div class="title-btn floatleft">
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 55px; margin-bottom: 18px;
        margin-top: 10px;">
        单号：</div>
    <div style="margin-bottom: 18px; float: left; width: 911px;">
        <table border="0">
            <tr>
                <td>
                    <asp:RadioButtonList ID="createaccnord" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Text="自动生成单号" Value="0" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="手工输入单号" Value="1"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td>
                    <input type="text" name="textfield" id="accno_txt" runat="server" maxlength="9" style="width: 110px;
                        border: 1px solid #CCC; margin-right: 30px; height: 15px;" /><span id="ShowNoErr"
                            style="font-weight: bold"></span>
                </td>
            </tr>
        </table>
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 55px; margin-bottom: 18px;
        margin-top: 10px;">
        归属：</div>
    <div style="margin-bottom: 18px; float: left; width: 911px;">
        <table border="0">
            <tr>
                <td>
                    <asp:RadioButtonList ID="accnogs" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Text="公司归属 &nbsp; &nbsp;" Value="0" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="其他帐号归属" Value="1"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td>
                    <input type="text" name="textfield" id="gs_txt" runat="server" style="width: 110px;
                        border: 1px solid #CCC; margin-right: 30px; height: 15px;" />
                </td>
            </tr>
        </table>
    </div>
    <div style="width: 483px; color: #606; font-weight: bold; float: left">
        寄件人资料
    </div>
    <div style="width: 483px; color: #606; font-weight: bold; float: left">
        收件人资料：
    </div>
    <div style="width: 483px; margin-top: 10px; float: left">
        姓名
        <input type="text" name="textfield" id="sendertxt" runat="server" style="width: 161px;
            border: 1px solid #CCC; margin-right: 10px; height: 15px;" />
        电话
        <input type="text" name="textfield" id="phonenotxt" runat="server" style="width: 180px;
            border: 1px solid #CCC; height: 15px; margin-right: 20px;" />
        <div style="height: 8px;">
            &nbsp;</div>
        公司名称
        <input type="text" name="textfield" id="companytxt" runat="server" style="width: 380px;
            border: 1px solid #CCC; height: 15px; margin-right: 20px;" />
        <div style="height: 8px;">
            &nbsp;</div>
        邮寄地址
        <input type="text" name="textfield" id="addtxt" runat="server" style="width: 380px;
            border: 1px solid #CCC; height: 15px; margin-right: 0px;" />
    </div>
    <div style="width: 483px; margin-top: 10px; float: left">
        姓名
        <input type="text" name="textfield" id="renametxt" runat="server" style="width: 163px;
            border: 1px solid #CCC; margin-right: 10px; height: 15px;" />
        电话
        <input type="text" name="textfield" id="rephonenotxt" runat="server" style="width: 181px;
            border: 1px solid #CCC; height: 15px; margin-right: 20px;" />
        <div style="height: 8px;">
            &nbsp;</div>
        公司名称
        <input type="text" name="textfield" id="recompanytxt" runat="server" style="width: 380px;
            border: 1px solid #CCC; height: 15px; margin-right: 20px;" />
        <div style="height: 8px;">
            &nbsp;</div>
        邮寄地址
        <input type="text" name="textfield" id="readdtxt" runat="server" style="width: 380px;
            border: 1px solid #CCC; height: 15px;" />
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 20px;">
        参考号/订单号
        <input type="text" name="textfield" id="FlightNotxt" runat="server" style="width: 110px;
            border: 1px solid #CCC; margin-right: 10px; height: 15px;" />
        启运地
        <asp:DropDownList ID="qyd_ddr" runat="server" Width="90px" Height="20px" CssClass="bordercss">
        </asp:DropDownList>
        &nbsp;&nbsp; 目的地
        <asp:DropDownList ID="mdd_ddr" runat="server" Width="90px" Height="20px" CssClass="bordercss">
        </asp:DropDownList>
        &nbsp;&nbsp; 航空单号
        <input type="text" name="textfield" id="AerialNotxt" runat="server" style="width: 100px;
            border: 1px solid #CCC; height: 15px;" /></div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 20px;">
        运送货物资料：</div>
    <div style="margin-top: 10px; float: left; width: 966px;">
        货物种类：
        <asp:RadioButtonList ID="huowulist" runat="server" h RepeatDirection="Horizontal">
            <asp:ListItem Text="文件" Value="0" Selected="True"></asp:ListItem>
            <asp:ListItem Text="私人包裹" Value="1"></asp:ListItem>
            <asp:ListItem Text="商业样品" Value="2"></asp:ListItem>
        </asp:RadioButtonList>
    </div>
    <div style="margin-top: 10px; float: left; width: 966px;">
        <div style="margin-right: 755px; float: left;">
            货物品名</div>
        <div style="margin-right: 35px; float: left;">
            数量</div>
        <div style="float: left;">
            海关申报价</div>
    </div>
    <div style="margin-top: 8px; float: left; width: 966px;">
        <img src="../Images/insertname.jpg" border="0" align="absmiddle" onclick="ShowNameSelect('1')" />
        <input type="text" name="textfield2" id="name1" runat="server" style="width: 700px;
            border: 1px solid #CCC; height: 15px; margin-right: 15px;" />
        <input type="text" name="textfield2" id="num1" runat="server" style="width: 40px;
            border: 1px solid #CCC; height: 15px; margin-right: 15px;" />
        <input type="text" name="textfield2" id="price1" runat="server" style="width: 70px;
            border: 1px solid #CCC; height: 15px;" />
    </div>
    <div style="margin-top: 8px; float: left; width: 966px;">
        <img src="../Images/insertname.jpg" border="0" align="absmiddle" onclick="ShowNameSelect('2')" />
        <input type="text" name="textfield2" id="name2" runat="server" style="width: 700px;
            border: 1px solid #CCC; height: 15px; margin-right: 15px;" />
        <input type="text" name="textfield2" id="num2" runat="server" style="width: 40px;
            border: 1px solid #CCC; height: 15px; margin-right: 15px;" />
        <input type="text" name="textfield2" id="price2" runat="server" style="width: 70px;
            border: 1px solid #CCC; height: 15px;" />
    </div>
    <div style="margin-top: 10px; float: left; text-align: right; width: 916px; color: #09F;">
        海关申报总价： $<asp:Label ID="haiguanall" runat="server" Text="0"></asp:Label></div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 5px;">
        货物重量资料：</div>
    <div style="margin-top: 10px; float: left; width: 966px;">
        重量：<input type="text" name="textfield2" id="zhongliang_txt" runat="server" style="width: 40px;
            border: 1px solid #CCC; height: 15px;" />
        磅<span style="margin-right: 30px;">&nbsp;</span> 包裹尺寸：长
        <input type="text" name="textfield2" id="changtxt" runat="server" style="width: 40px;
            border: 1px solid #CCC; height: 15px;" />
        英寸 &nbsp; X &nbsp; 宽
        <input type="text" name="textfield2" id="kuantxt" runat="server" style="width: 40px;
            border: 1px solid #CCC; height: 15px;" />
        英寸 &nbsp; X &nbsp; 高
        <input type="text" name="textfield2" id="gaotxt" runat="server" style="width: 40px;
            border: 1px solid #CCC; height: 15px;" />
        英寸
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 80px; margin-top: 22px;">
        支付方式：</div>
    <div style="margin-top: 18px; float: left; width: 886px; height: 20px;">
        <asp:RadioButtonList ID="paylist" runat="server" h RepeatDirection="Horizontal">
            <asp:ListItem Text="现金" Value="1" Selected="True"></asp:ListItem>
            <asp:ListItem Text="月结" Value="2"></asp:ListItem>
            <asp:ListItem Text="到付" Value="3"></asp:ListItem>
        </asp:RadioButtonList>
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 55px; margin-top: 18px;">
        总收费：</div>
    <div style="margin-top: 18px; float: left; width: 911px;">
        $<asp:Label ID="Totallb" runat="server" Text="0.00"></asp:Label>
    </div>
    <div style="margin-top: 10px; float: left; width: 966px; height: 20px; border-bottom: 1px solid #CCC;">
        <div style="margin-right: 20px; float: left;">
            收费重量</div>
        <div style="margin-right: 83px; float: left;">
            计费类别</div>
        <div style="margin-right: 35px; float: left;">
            重量收费</div>
        <div style="margin-right: 55px; float: left;">
            垫付费用</div>
        <div style="margin-right: 35px; float: left;">
            代购费</div>
        <div style="margin-right: 35px; float: left;">
            包装费</div>
        <div style="margin-right: 45px; float: left;">
            关税</div>
        <div style="margin-right: 40px; float: left;">
            保险费</div>
        <div style="margin-right: 45px; float: left;">
            其他费</div>
        <div style="margin-right: 35px; float: left;">
            优惠</div>
    </div>
    <div style="margin-top: 5px; float: left; width: 966px; height: 20px;">
        <div style="margin-left: 5px; float: left; width: 63px; margin-top: 3px;">
            <asp:Label ID="ChargedWt" runat="server" Text="0"></asp:Label>磅
        </div>
        <div style="width: 130px; float: left;">
            <asp:DropDownList ID="jifeitype" runat="server" CssClass="jifeitypecss">
            </asp:DropDownList>
        </div>
        <div style="width: 83px; float: left; margin-top: 3px;">
            $
            <asp:Label ID="FreightChargelb" runat="server"></asp:Label>
        </div>
        <div style="width: 104px; float: left;">
            $
            <input type="text" name="textfield2" id="dianfufeilb" value="0" runat="server" style="width: 50px;
                border: 1px solid #CCC; height: 15px; margin-right: 0px;" /></div>
        <div style="width: 71px; float: left; margin-top: 3px;">
            $
            <asp:Label ID="daigoufeilb" runat="server"></asp:Label>
        </div>
        <div style="width: 71px; float: left; margin-top: 3px;">
            $
            <asp:Label ID="baozhuangfeilb" runat="server"></asp:Label></div>
        <div style="width: 70px; float: left;">
            $
            <input type="text" name="textfield2" id="guanshuitxt" runat="server" value="0" style="width: 40px;
                border: 1px solid #CCC; height: 15px;" /></div>
        <div style="width: 76px; float: left;">
            $
            <input type="text" name="textfield2" id="baoxianfeitxt" runat="server" value="0"
                style="width: 40px; border: 1px solid #CCC; height: 15px;" /></div>
        <div style="width: 81px; float: left;">
            $
            <input type="text" name="textfield2" id="othertxt" runat="server" value="0" style="width: 40px;
                border: 1px solid #CCC; height: 15px;" /></div>
        <div style="width: 70px; float: left; color: #F00;">
            -$
            <input type="text" name="textfield2" id="youhuitxt" runat="server" value="0" style="width: 30px;
                border: 1px solid #CCC; height: 15px; color: #F00;" /></div>
        <img src="../Images/btn-update-price.gif" width="54" height="20" align="absmiddle"
            id="uppricebtn" /></div>
    <div style="margin-top: 5px; float: left; width: 966px; height: 20px;">
        <span id="editshow"></span>
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 20px;">
        货运状态跟踪：</div>
    <div class="trans-search-title floatleft" style="width: 966px; margin-top: 10px;">
        <div class="trans-search-no" style="width: 150px">
            更新日期</div>
        <div style="width: 250px; float: left;">
            货运状态</div>
        <div class="trans-search-sender">
            转运公司</div>
        <div class="trans-search-date" style="width: 130px">
            转运单号</div>
        <div class="trans-search-date" style="width: 300px;">
            备注</div>
    </div>
    <div id="statehtml">
    </div>
    <div style="margin-top: 0px; float: left; width: 966px;">
        添加新货状态跟踪：
        <asp:DropDownList ID="statelistdrr" runat="server" CssClass="jifeitypecss">
        </asp:DropDownList>
        日期：<input type="text" name="textfield" id="statedate" onfocus="WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'})"
            style="width: 100px; border: 1px solid #CCC; height: 15px; margin-right: 20px;" />
        转运公司：
        <asp:DropDownList ID="cplistdrr" runat="server" CssClass="jifeitypecss">
        </asp:DropDownList>
        转运单号：<input type="text" name="textfield" id="zhuanyuntxt" style="width: 65px; border: 1px solid #CCC;
            height: 15px; margin-right: 20px;" />
        备注：<input type="text" name="textfield" id="beizhuttxt" style="width: 120px; border: 1px solid #CCC;
            height: 15px; margin-right: 20px;" />
        <img src="../Images/btn-add-status.gif" width="68" height="25" align="absmiddle"
            onclick="addState()" /></div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 20px;">
        历史留言：</div>
    <div id="liuyandiv">
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 20px;">
        增加留言：</div>
    <div style="margin-top: 10px; float: left; width: 966px;">
        <textarea id="liuyanneirong" runat="server" style="width: 950px; height: 80px;"></textarea></div>
    <div style="margin-top: 10px; float: left; width: 966px;">
        <img src="../Images/icon-attachment.gif" width="39" height="19" align="absmiddle" />
        <asp:FileUpload ID="imageup" runat="server" />
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 20px;
        text-align: center;">
        <asp:ImageButton ID="Okbtn" runat="server" ImageUrl="~/Images/btn-save-trans.gif"
            OnClick="Okbtn_Click" Width="192" Height="40" />
    </div>
    <asp:HiddenField ID="stateidhd" runat="server" />
    <asp:HiddenField ID="statenamehd" runat="server" />
    <asp:HiddenField ID="anccnum" runat="server" />
    <asp:HiddenField ID="datehd" runat="server" />
    <asp:HiddenField ID="gongsihd" runat="server" />
    <asp:HiddenField ID="danhaohd" runat="server" />
    <asp:HiddenField ID="liuyanhd" runat="server" />
    <asp:HiddenField ID="creaduser" runat="server" />
    <asp:HiddenField ID="Totalhb" runat="server" />
    <asp:HiddenField ID="haiguanhd" runat="server" />
    <asp:HiddenField ID="shoufeizhonglianghd" runat="server" />
    <asp:HiddenField ID="zlshoufeihd" runat="server" />
    <asp:HiddenField ID="daigoufeihd" runat="server" />
    <asp:HiddenField ID="baozhuangfeihd" runat="server" />
    <asp:HiddenField ID="tijizhonglianghd" runat="server" />
    <asp:HiddenField ID="beizhuhd" runat="server" />
    <div id="UserGet" title="用户选择 - 请直接勾选后关闭">
        <iframe id="UserShow" src="UserGetShow.aspx" scrolling="no" width="100%" height="100%"
            style="z-index: -1;" frameborder="0"></iframe>
    </div>
    <div id="NameSelect" title="品名选择">
        <div style="width: 100%; text-align: center">
            <img src="../Images/okinsert.jpg" border="0" align="absmiddle" onclick="ToNameSelect()" />
            <br />
            <br />
        </div>
        <asp:Repeater ID="Rpt_Name" runat="server">
            <ItemTemplate>
                <input type="checkbox" id="nameck" name="toselectnameck" value='<%#Eval("GoodsName")%>' />
                <%#Eval("GoodsName")%>
                <%#(((Container.ItemIndex + 1) % 9) == 0) ? "<br/><br/>" : ""%>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
